<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>

<body>
    <!-- 准备好一个容器 -->
    <div id="root">
        <h1>hello,{{name}}</h1>
    </div>
    <div id="root2">
        <h2>hello,{{name}},{{address}}</h2>
    </div>
    <script src="js/vue.js" type="text/javascript"></script>
    <script type="text/javascript">

        //创建vue实例
        new Vue({
            el: '#root',
            data: {
                name: 'zhangsan123'
            }
        })

        new Vue({
            el: '#root2',
            data: {
                name: 'zhangsan123',
                address: 'suzhou'
            }
        })
    </script>
</body>

</html>